﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BbsbWebService.Classes;
using BbsbWebService.Enums;

namespace BbsbWebService.Repositories.Client
{
    public abstract class ClientPowerRepositoryBase<T> : PowerRepositoryBase<T> where T : CommandItem
    {
        protected override PowerState SendPowerBase(CommandItem item, PowerOption option)
        {
            return ClientCommon.Service.SendPower(item.Id, option);
        }

        public override PowerState Toggle(Guid id)
        {
            return ClientCommon.Service.Toggle(id);
        }
    }
}
